<?php
class AjaxUserInformer_Controller_Action_Helper_Initialize extends Zend_Controller_Action_Helper_Abstract {
	
	public function preDispatch() {
		$route_name = $this->getFrontController ()->getRouter ()->getCurrentRouteName ();
		
		if (empty ( $route_name ) || $route_name != 'admin_default') {
			Zend_Registry::get ( 'Zend_View' )->headScript ()->appendScript ( Zend_Registry::get ( 'AjaxUserInformer_Init' ) );
		}
	}

}